package java67_7;

public class Arr3 {

	public static void main(String[] args) {
		// array
		int[] ar = new int[0];// 正确的
		int a2[] = new int[2];
		a2[0] = 100;
		a2[1] = 99;
		// a2[2] = 22;// 数组越界
		// a2[-1] = 333;
		int[] score = new int[5];
		// score={1,2,3,5,4};错误
		score = new int[] { 1, 2, 3, 5, 6 };
		int[] score2;
		// score2= {1,2,43,5,25,333};
		score2 = new int[] { 1, 32, 3 };// new int[7]
	}

}
